﻿
@{
    ViewBag.Title = "DriverCertificateDetail";
    ViewBag.First = "车辆管理";
    ViewBag.Second = "创建证书";
    Layout = "~/Views/Shared/_BaseLayout.cshtml";
    var ent = ViewData["ent"] as Sc.Domain.DriverCertificate;
}
<script type="text/javascript">
    function back() {
        window.location.href = "@Url.Action("Index")";
    }
</script>
<div class="formbody">
    <div class="formtitle"><span>创建证书</span></div>
    <form method="post" enctype="multipart/form-data" class="jqtransform" id="formData" style="margin-top:-20px;">
        <table style="width:100%;line-height:48px;">
            <tr>
                <td><label>证书编号</label></td>
                <td>
                    <input type="text" class="dfinput" readonly="readonly" value="@ent.CertificateCode" id="txtCertificateCode" />
                </td>
                <td><label>驾 驶 员</label></td>
                <td>
                    <input type="text" class="dfinput" value="@ent.Name" readonly="readonly" id="txtDriver" />
                </td>
            </tr>
            <tr>
                <td><label>证书类型</label></td>
                <td>
                    <input type="text" class="dfinput" id="txtUsefulLife" readonly="readonly" value="@ent.UsefulLife" />
                </td>
                <td><label>有效期开始时间</label></td>
                <td><input type="text" class="dfinput" value="@ent.StartTime.ToString("yyyy/MM/dd")" id="txtStartTime" readonly="readonly" /></td>
            </tr>
            <tr>
                <td><label>有效期年限</label></td>
                <td><input type="text" class="dfinput" id="txtUsefulLife" readonly="readonly" value="@ent.UsefulLife" /></td>

                <td><label>年检考试得分</label></td>
                <td><input type="text" class="dfinput" id="txtScore" readonly="readonly" value="@ent.Score" /></td>
            </tr>
        </table>
        <div class="formtitle"><span>证书照片</span></div>
        <div class="toolsli">
            <ul class="toollist" id="tp">
                @if (ent.AttactList != null)
                {
                    foreach (var item in ent.AttactList)
                    {
                        <li style="width:140px;height:140px">
                            <a><img width="120" style="border-radius:5px" height="120" src="/UploadFiles/CarImg/@item.FileUrl" /></a>
                        </li>
                    }
                }
            </ul>
        </div>
        <input type="button" class="btn" style="margin-left:20px" onclick="back();" value="返 回" />
    </form>
</div>

